import UIKit
import Flutter

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
  override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
    
    let v3Path = Bundle.main.path(forResource: "v3", ofType: "bundle")

    FURenderer.share()?.setup(withDataPath: v3Path ?? "", authPackage: &g_auth_package, authSize: Int32(MemoryLayout.size(ofValue: g_auth_package)), shouldCreateContext: true)

    GeneratedPluginRegistrant.register(with: self)
    
    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  }
}
